# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=punk
_pkgname=punk.py
pkgver=9.c2bc420
pkgrel=5
pkgdesc='A post-exploitation tool meant to help network pivoting from a compromised unix box.'
arch=('any')
groups=('blackarch' 'blackarch-exploitation')
url='https://github.com/r3vn/punk.py'
license=('GPL3')
depends=('python')
makedepends=('git')
source=("git+https://github.com/r3vn/$_pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $_pkgname

  install -Dm 755 $_pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
}

